Ensure apt is updated before trying to install

I was having a problem where apt wasn't up to date before RVM tried to install curl. This should resolve that.