Expand tildes in file paths