If DelayedJob is running on Rails 4, use 'bin' directory for script generator

Simpler than #501