fixed check for home dir if -H argument is not set