temporary patch for KARAF-3249: dirname error if the distribution path contains spaces