Minor corrections to lib scripts.