Expand directory before running command.

- fixes #12