Fix path substitution code to fix Solaris source builds

Addresses: basho/riak#439
Merge pull request #440 from basho/jem-solaris-runner-fix

Fix path substitution code to fix Solaris source builds