Fix escaping on non-osx systems.