Applied require-dir where needed