Re-open file after read

To keep the loop spinning. Also clean up Makefile

Signed-off-by: Tim Smart <tim@fostle.com>