Expanding user directory if file start with ~.
Expanding user relative paths.