Fix template to support auto load of lib in Rails >=3.0