Fix bug compiling assets.

* Remove REV file in dev mode
* Check file existence instead
* Simulate first to get filenames, then conditionally compile.