Fix prerequisite checking module to work correctly