make it possible to touch a file so it gets created if it doesn't exists

Change-Id: I876a4b6f683c2183925bf19300b88a9332db5514
Reviewed-by: Jesper K. Pedersen <jesper.pedersen@kdab.com>