fixes hard coded slash as directory separator and some refactoring

replaces a hardcoded slash in `Repository/Page::findByPath()` with a proper directory separator and some minor refactoring for better readability