Only delete files/folders if they exist on filesystem

This broke "add a folder" in manage-files.feature