Use NINJA environment variable in the build action as well.