remove historic compatibility pre-flight code
make installer pre and post flight scripts more robust