Allow symlinking paths.php

chdir is done relative to public/index.php to avoid chdir'ing to the
symlinked location