Issue #695: Fix traceback in utils/build.py.
Issue #696: Add function to expand tilde and env variables in given path.
Issue #697: Add cli options --distpath, --workpath, --specpath.