Remove debugging and fix postinst script to work when SHELL is not set.