Make update conditional (osx fix).