Fix klistopenfilesjobtest on FreeBSD.
It was assumed that running an executable implicitly opens a file or directory CWD, but it seems not to be true on FreeBSD. Use temporary directory and create the file manually to make the test more robust.
It was assumed that running an executable implicitly opens a file or directory CWD, but it seems not to be true on FreeBSD. Use temporary directory and create the file manually to make the test more robust.