Add environment variable expansion

Environment variables will now be expanded if they contain other
environment variables.  This is necessary for integration with Docker's
linking capability during environment variable composition.