test: fix spawn_reads_child_path when using autoconf

Don't hardcode the name of the executable, take it from the exepath.

Fixes #1407