fixing bug where dependencies could be included twice
don't include empty files into file lists used for serve or build