make homedir friendly

Signed-off-by: BlackEagle <ike.devolder@gmail.com>