Fix stdin execopts to look for first instance of '<'

Some of our automated tests add arguments after those in execopts, and we were only looking at the last two arguments. This fix will look for the first instance of '<', instead of looking at the second-to-last argument.