Removed unneeded path searches

A patch by @etam for @openSUSE that has not yet been upstreamed.