Fixes Portable ST Terminal

By setting and getting ENV to pass the $program_dir to batch file, make it get the correct path.

Signed-off-by: mail6543210 <mail6543210@yahoo.com.tw>