Directory: rewrite absolute paths on the cmdline

Fixes #80