add check_home_directory for Solaris

I've added check_home_directory for Solaris.

same as #77