Implement tilde expansion in file name