Dreamweaver does not always "know" what files are dependent or not, even when it does, it is often very flaky about putting the dependent files. It is a better practice to manually manage related files than to rely on Dreamweaver to manage them for you.