Supporting directories with ~