Add support for resolving ~/ to the user's home directory in path types.

Task-number: QBS-223

Change-Id: I1835d4a49122ca804f6b30bdb9bd298c18f7a771
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>