Always use dummy core_pid=0 when we're not given one from command line
Create exe-package section only when we were given a valid PID
Dump core only when we were given a valid PID
Assign random core_sig to Quick Feedback coreless reports
Turn off bash posix mode

Script is not POSIX compliant and failed with error when SHELLOPTS=posix
was specified in environment.