Fixed if test, no [ and ] required.
Package manager forgot to mark dependencies as installed.
Removed unused variable
Allow to clean cache using an environment variable
Report correct repositories on start