Improve Sparkle path substitution