run: fix update function for non OS X systems