Updates working directory and variabalized a few more commands for flexibility and continuity. Also added a check to make sure the top level RPM is downloaded itself.