Add more IO tracking features.
Upgrade build script to bash standard