First version of build-source script