Add local zprofile support