Fixed init script with necessary `paths` option for `replace(...`