Better handling of relative imports.
Update lua path in tests.
Restart scheduler when it fails, but only every minute.