Ensure that `pwd`/dist exists and is writeable

This fixes the problem that was reported in #192

The chmod maybe extreme; but as I built this as a non-root user I got the feeling it might be required.

Signed-off-by: Scott M. Likens <scott@likens.us>