Fix shell version when invoked from a script
Fix shell version when invoked from a script

When invoked from a shell script, `$(jenv init -)` did not get theshell name correct.
These code is get from rbenv.
gcuisinier/jenv