Add sudo to apt-get install command and move to before_install