Moved apt-get update to earlier in the script