Move requirements.txt creation further down