Use the --directory option for the build

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