Add portability fix for hacking/env-setup

Change `` usage to $()
Add check for KSH93 to set HACKING_DIR
Pure shell fix for FULL_PATH