Treat more like a library; remove log calls and use newer os calls.

If accepted, ajas should change the import line back to your repo.