Check if the package name passed as argument is a valid package. Add some guards to avoid to clean a package more then once. Check if the config.cache file exist.