Add if block for nvm setup