Fixed --refresh with "download" and "run" for apps

Reported by Tim Cuthbertson.