fix to work with assets on CDN 

I ran into trouble using this gem when using Heroku and hosting assets on a AWS. Here is the change I made to get it going.  Not sure if there is a cleaner way?