[MenuBundle] Fix composer & file mode