fix some issues with downloads scripts in install mode