Change the support of the return keyword

The code of required script is include in a function which now have
a different signature.

Closes #102 #141