Avoid hardcoding paths for escript's
Add ESCRIPT_MAIN_MODULE

This patch adds a new variable that allows you to define which module
the main/1 function is defined in.