Added better diagostics when asm scanning fails

Improves the error message when scripts is missing dependencies.