Use execvp(3) instead of execv(3). execvp and execlp work exactly like execv and execl respectively, except they search the $PATH environment variable for an executable (see the man page for full details).
execvp(3)
execv(3)
execvp
execlp
execv
execl
$PATH