fixed WriteScenario() permissions for Mac launchApp.command