It was incorrect because it was following symlinks. That means that a build system wouldn't detect is a symlink changed. It's probably best not to do any normalization at all and leave it to the build system.