Refactor test directories, chafiles are now written relative to the webRoot setting and the path relative to projectRoot is preserved when writing