added -t switch to test config. file correctness and exit