fix for file not found issues

I was running into an issue with the tinymce gem, some files were not there but ti was expecting them, so it would crap out.  I just moved the code behind guards and now it works for me.  Not sure if you'd like to add this to them gem, but it would be much appreciated!