Fix a bug where a .gtmodel file could not be deleted.
Fix a bug where deleting a model file would not delete both the base file and the .gtmodel file.