fixed windows build, and made file_isexecutable windows-ish