replace_tilde_with_home(
line) ->line
Replace ~ in the line with current user's home directory
Replaces tilde occurrences in the line with user's home directory.
Tilde is replaced only in those position where it makes sense to replace
it with home, thus it won't be replaced in a middle of a word.
Returns nil if user's home can't be determined or if line is nil.