Running different commands depending on platform.