fix writing to actually only happen during flush
fix excludes so "client" is properly included in the karaf tarball