Fixed improper use of String.replaceAll

On Windows, this caused ${karaf.home} to be replaced with "C:someDirSomeSubDir" instead of ("C:\someDir\SomeSubDir")

When using replaceAll, if the replacement isn't a hardcoded regexp replacement expression, it should be quoted with Matcher.quoteReplacement, otherwise replaceAll will evaluate \0 as a a backreference. Also, it will simply remove backslashes when \x (or \a or \b or ...) is not a special escape sequence as far as replaceAll is concerned.