Replace BASHPID with $$.