Also disallow ~ in installpath.

Task-number: QTIFW-304

Change-Id: I4fa0b00165e43143cc8c5993c0aba07e9d793f76
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>