[PATCH 3/5] Move environment setup to a shell script