make library load path robust to empty paths