Fixes #7527 - don't require less in production unless from rake
Merge pull request #4673 from iNecas/issue/7527

Fixes #7527 - don't require less in production unless from rake