This rips out the remaining perl logic from the build system. This is finishes what !162 (merged) started.