expanduser for --output= and --output-dir=
against pull request #205