Fixed clean problem for invalid package files.