better way to execute pre/post matrix scripts.
add the current build result as a environment variable.