Fix path substitution in launcher