Improved portability

Checked with zsh and ksh.
Bug found in example.sh in ksh with source path - fixed
Bug found in shini.sh in ksh with type -t argument - fixed