fix build.sh output redirection to not bg the task