build: expand ~ in install prefix early
The install prefix gets written to config.gypi and config.mk. Tildes
were expanded in the first file but not in the second one, causing the
make install
target to install files to a directory named ~
in
the current working directory.
Fixes: https://github.com/nodejs/node/issues/75
R=@jbergstroem?