[PATCH] set bash env variables before running scripts