Minor fixes regarding current download pointer. Made the system command more error-resistant (at the sacrifice of flexibility)