add -d option to patch

Signed-off-by: Mattias Andrée <maandree@operamail.com>