add checks for existing dumpdir items - closes #164

also seems to fix some trailing spaces I left in the code

Signed-off-by: Petr Kubat <pkubat@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>