Making script extension not required for script execution.

PR addressing the issue #492.