fix bug when gulp inject runs before files are compiled