fixed call to expanduser