Move allow_no_extension to global
Merge pull request #2951 from ibuclaw/runscript

Move allow_no_extension to global