Fix the problem that messes up MANPATH. Issue #393

${MANPATH#*$NVM_DIR/*/man:} will simply delete everything before the nvm man path entry, which will cause problem when it is not the first entry.
The replacement is from the deactivate function.