fixes #92: handled issue that which throws error if path was not found