The `ulimit -t 60` doesn't work either, since the test hangs but doesn't consume any CPU time. Suggestions here?

Would `curdir=$PWD` and `cd $curdir` be better as opposed to `cd -`?