quick refactor and re-enable the server
git_root() func
use the same validators for rel path from git root