check md5 of downloaded package
take gitlab.rb out from install script
Use env+bash to execute the script
Refactor a little