Add optional flag for package cleaning

This allows optional cleaning of the package directory.