Don't delete resources without file name (fixes #33)