changed file monitor logic to monitor multiple dir

Signed-off-by: Hongyi Jia <Hongyi.Jia.GR@dartmouth.edu>