Added dependency check

gcc is required to compile the new bash, an it may not be installed on all system.
Added system check before downloading files to check for gcc to be installed.