Moved extension building outside of run.sh