Fix target dir for root installations and empty AdminTargetDir

Make sure e.g. '@homeDir@' is replaced also in this case.

Change-Id: Ife5b2d88e19abdab8b9264c5db09c1d9b5c13916
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>