fixed server rebuild bug

now the site only gets rebuilt when the file event does not happen on
the output folder.