fix tilde expansion in config