Treat paths that begin with tilde "~" as absolute paths instead of relative.

Fixes #898
Merge branch '1.7' into 1.8