use erlang init module function to get home path