Debug script fix, change main to use otmpd as module