fix home path detection