fix -bash in perl hooks