fixes CommandExecutionError when using pip state find_links with directo...

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