Add support for expanding user directories