correct platform detection error
quoting and escaping problems