Changed rfileOptions and rhtmlOptions parameter position since rfileify specifies that '[modules] meet the simple requirement of taking an object with dirname property as their second argument'.