added check_homedir_exists()