Added ifdef depend on OS in main with system() method