Add "or '.'" after dirname() calls in hooke.command_stack and .playlist.