agent: Use SHELL if provided. Fixes #237.