Fix prereq extractor (not sure how this ever worked...)