added option to specify user home directory mode
Merge pull request #44 from tiger-seo/master

special case for root user