Fixed issue locating data files when running on windows.
clean code