added wget to retrieve files

added wget to retrieve files and put them in correct directory.  also created dependencies to ensure directory exists before wget and jdk installs is run after transfer