Used exe extension on windows and fixed relative path issue on windows