Shouldn't assume magic paths.

This fixes the test when run with 'fork = true'.

@nhibberd