added tilde expansion of user directory