replaced fsUtils.stripTrailingSlashes with stripExtraSlashes