added fix for reading files under windows