Update the script executor

1. Run the script in postbuild as bash script in Mono.
2. Tolerant the missing command in Mono. It happens when the command is
Windows platform only.
3. Replace alternative directory separator in first argument with platform
supported directory separator.

The change won't break current postbuild script blocks on Windows Platform