def surround_quotes(string):
 if (in_bash() and string):
  return '"{0}"'.format(string)
 return string

def surround_quotes ( string ) : if ( in_bash ( ) and string ) : return '"{0}"' . format ( string ) return string
bash has problems dealing with certain paths so were surrounding all path outputs with quotes .