Moved away from getenv and tried to make build_prompt more readable