Fix NameError when removing a file

fixes #3
up ver