compile.sh now creates dist/ if necessary