fix sprockets-commonjs for non rails environment, related to #19
remove unused regist for test