Handle eventual spaces in .karaf input config files. Replacement stopped working after Karaf 2.4 that introduced spaces that the 'sed' manipulation wasn't expecting.
Fixes #2401