Fixed and improved karaf custom dist.