Reordered apt packages as suggested by Yarko, and changed script to rely on workon more heavily over direct sourcing