Optional env vars with defaults, custom scripts