old_contents: /*
   * grunt-babelsbergjs
   * 
   *
   * Copyright (c) 2015 Maximilian Grundke
   * Licensed under the MIT license.
   */
  
  'use strict';
  
  var BabelsbergSrcTransform = require("./../node_modules/babelsbergjs-require/src/src_transform.js");
  
  module.exports = function(grunt) {
  
    grunt.registerMultiTask('babelsbergjs', 'Helper for BabelsbergJS for Node.', function() {
  
      this.files.forEach(function(f) {
        f.src.forEach(function(filepath) {
          if (!grunt.file.exists(filepath)) {
            grunt.log.warn('Source file "' + filepath + '" not found.');
            
          }
          var content = grunt.file.read(filepath)
          var transformed = new BabelsbergSrcTransform().transform(content);
          var filename = f.dest + filepath.replace(/.*\//, "").replace(".bbb", ".js");
          grunt.file.write(filename, transformed);
        });
      });
    
    });
  
  };
  
new_contents: /*
   * grunt-babelsbergjs
   * 
   *
   * Copyright (c) 2015 Maximilian Grundke
   * Licensed under the MIT license.
   */
  
  'use strict';
  
  var BabelsbergSrcTransform = require("./../node_modules/babelsbergjs-require/src/src_transform.js");
  
  module.exports = function(grunt) {
  
    grunt.registerMultiTask('babelsbergjs', 'Helper for BabelsbergJS for Node.', function() {
  
      this.files.forEach(function(f) {
        f.src.forEach(function(filepath) {
          if (!grunt.file.exists(f.cwd + filepath)) {
            grunt.log.warn('Source file "' + f.cwd + filepath + '" not found.');
            
          }
          var content = grunt.file.read(f.cwd + filepath)
          var transformed = new BabelsbergSrcTransform().transform(content);
          var filename = f.dest + filepath.replace(".bbb", ".js");
          grunt.file.write(filename, transformed);
        });
      });
    
    });
  
  };
  
subject: Fix cwd