added special condition for root home dir