Fix searchPath for arrays of length 1.

Fixes #23.