Fixed "upload" and "run" commands