updated watch log script to work with binary port agent files