get script directory in production scripts