Implements nvm which

* assuming that `$INPUT` is defined, of course