Fix for removing nonexistent file error