Do not delete directory if dir field is empty. Closes #116