Fixed empty directories or directories without specified target file not being watched.