Fix path substitution code to fix Solaris source builds

Addresses: basho/riak#439

The same issue will also be an issue with riak-cs.
Merge pull request #733 from basho/bugfix/jem-solaris-runner-fix

Fix path substitution code to fix Solaris source builds