* fix for checking locked system files * moved functions to share module util and created tests * fixed windows-paths test based on win_stat changes