check for files before inserting require into them

- check for application.css.scss or application.css file before inserting the require statement into them.
- Same holds for the application.js or application.js.coffee file