Updated pattern for menu handling to allow subdirectories.