make library load path robust to empty paths
Merge pull request #80 from jz1536/patch-1

Make library load path robust to empty paths on MacOSX.