added checks for locked dump directory to dd_* functions, closes #133

- amend: fixed whitespace errors

Signed-off-by: Petr Kubat <pkubat@redhat.com>
Signed-off-by: Jiri Moskovcak <jmoskovc@redhat.com>