improved error handling for the `nv mk` command

I stumbled on some error case which were not handled well by `nv mk`, here are some fixes.

Thanks!