fix 'env' variables in metadata