Quick-hack dependency analysis on AMP modules for proper ordering