Use the --directory option for the build

Remove the unnecessary .tar.gz compression + decompression step for
the bundled application. Also, as documented, if the output directory
already exists, it is deleted first, so the `rm -rf` command is also
no more necessary.