Fixed loading scripts from file for windows. Switched from file type to file name checking