don't run from stdin if there was a script executed via -e
move signal handler setup to lib/signal.{lua,c}