TEST-ONLY: Add unit test for get_..._shell_name().

* Add test to src/neovim/test/unit/path.moon.

* Quick-exit out of get_isolated_shell_name() when p_sh==NULL.

Without this, unit testing get_isolated_shell_name() causes a
segmentation fault.