The $initdir var is already set to $TESTDIR/root, it should be used instead of direct use of $TESTDIR/root.