move python version check so it happens after PATH