build.py: Minor fix to avoid building package twice