The only place the directory change is required is in tests_nodetests. If I remove those lines, everything works except for that. I could rewrite that custom target and remove this line entirely if that is preferrable, but I wasn't sure if this was a specific feature.