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