chdir: fix for the case where the buffer has no name
command: allow customization of the command that opens the created files.

Closes issue #50.