Clean packages metadata when installing nightly

Make sure to clean and fetch clean packages metadata to avoid package
not found install errors.