Remove duplicate sub getpath, clean up getinput

We weren't using getpath anyway. Getinput now purely returns STDIN.