NEON-1277: Adding a check for invalid Windows directory paths to the transformerRegistry and factoring out the path generation code to its own method