Added environment variable support for genecis build and src