update gruntfile to properly handle build and compile tasks with asset
files. this solution is not perfect but it should work in both cases.