Fixed 'undefined index: dir' error when deleting files (i.e. on record update/delete) and no 'dir' option ist set.