Added whitespace safeguards, simplified path

Why don't you delete the `linux version` part?

Also, why do you do a `cd`? Does the `$()` operator open a sub-shell?