Add tilde index support in paths.