update require.js loading conditional with distutils pkg

1.  will load require.js when aloha version >= 0.22 instead of only loaded for  0.22  series
2.  version cmp based upon distutils functions