Fix bug on require_tree on production