fix solaris path fix

- the '==' was wrong
- also fixed up this bit of code for /bin/sh-ification later
Merge branch 'lcg/fix-solaris-check' into 11-stable