Wrong variable in use, fixes fd26174d2cf on unix.

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