Actually you might have a point it was just the copying of the files that was the problem and since the previous step added the narayana artifacts to the local m2 folder the copy isn't required now. So it should still be useful to keep the option of conditionally building the AS. I will reinstate the guard:
 $AS_BUILD = 1 ] && build_as "$@"