Selfupgrade command now clears cache after a successful upgrade