fix path expansions