Treat paths that begin with tilde "~" as absolute paths

Fixes #898