Fixed resource directory setting in main, was being done after engine had been created (and had tried to load shaders).

- Runs on windows.