Since this is so similar to `build_source_deb`, could you make it a function and pass the relevant path (`$DOCUMENT_DIR` or `$SOURCE_DIR`) as an argument?