Allow configuration of app_dirs_pattern