Proper ordering of download and dpkg