clean up the way launchFile string is derived