Ensure searchpath is an array when set via environment variable