Set list of enabled modules even if no project exists
Include modules fully qualified
Fix LegacyIssuesToWorkPackages for AR API change

On Rails4,  #select_all returns a ActiveRecord::Result.

http://www.ruby-doc.org/core-2.1.4/Array.html#method-i-length

Signed-off-by: Alex Coles <alex@alexbcoles.com>