added a mayaIsBatch func to catch when running headless