Fix library path determiners.
Merge pull request #314 from prometheus/fix/binary/shell-script

Fix library path determiners.