[CDF-423][Regression] Pentaho EE 5.0.7 with latest CTools v14.10.15 is breaking PIR
	- the previous fix was causing build issues @ pentaho-dashboards
	- this new fix applies the same solution, but differentiates between build and production environments (ensuring build-time remains un-altered)