Missing part of the env script patch