Reorganise commands so it works
Fixes #5081 Warn in system check when Pagespeed module is enabled