fixes #254: fix the fatal bug that if directories.css is defined, cortex build will missing all resources outside the css folder.