fixes CommandExecutionError when using pip state find_links with directory path

If the directory exists, an error will be thrown instead of passing it to the pip command line.