fix datarootdir replacement