Updated env script