Fix script error when initializing rbenv