Revert "Used substr_compare instead of substr when we don't care about result"

This reverts commit 07f01bcf2bb7725eab00cd5a22cc0c79161702b2.

BUT ONLY for the /build directory!
phpdoc