Make pip-micropython more portable

Replace /tmp with a $TMPDIR variable
Replace multiple occurrences of /tmp/pip-micropy-venv with a $TMPVENV variable
Replace ~ with $HOME
Merge pull request #480 from lurch/patch-2

Make pip-micropython more portable