Added path options for integration with build.sh, check for pasim return code and store pasim stats.