replace require() paths with abs paths