Interpret "~" as home directory shortcut when resolving wildcards.

This is currently not done for group prefixes.

Task-number: QBS-516
Change-Id: I2e973ada0d91b17e3cdb4b9d7df3f8d2f79e638c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>