more reliable and cross-platform-compatible heuristics for finding ~/.pause

Currently the heuristic for finding ~ is very thin and doesn't work on all platforms. This patch adds File::HomeDir to guarantee that the appropiate ~ is found on every platform.