This fixes the problem of generating invalid Makefiles when more than one python installation is found.