Refactor sphinx path