watch a directory and re-execute a given command