Fixes #18.
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>
Fixed encoding bug from ST's path, fixes the parameters, too. [ref. #25]

Signed-off-by: mail6543210 <mail6543210@yahoo.com.tw>