Added OS detection and defines to premake script
Added unit test for GetApplicationDirectory() and fixed the function