Adjusted Rane's method of finding the file to run to allow us to use execv instead of execvp