expanded ~/ to home_dir