Exception on `doorstop publish PREFIX DIRPATH`.

http://prntscr.com/3pau54

The issue here is that doorstop expected a file, but never checked it so the open threw an exception.

User input should always be checked before being acted upon.

In this instance, a check that the path is a file should be sufficient.