Change extend function to ignore pm2-related environment variables from the nested env