Fix for https://github.com/middleman/middleman/issues/1145
Merge pull request #1 from lolmaus/master

Fix for https://github.com/middleman/middleman/issues/1145