fixed parseStringVariables func and upstart nonsense