Fixing coffee issues

Fixing some issues caused when switching to a different version of coffeescript or when using an empty lib/ directory