rename profile.resolvePath() as profile.resolveHomePath(), and no longer use path.resolve