fix solaris path fix

- the '==' was wrong
- also fixed up this bit of code for /bin/sh-ification later