Only require coffee file when available

Closes #3864