Bug 1014793 - Added 'wait_for_pid_file' function to Bash SDK

This function is used to wait 10 seconds for PID file to be
written by Apache process. All Apache based cartridges were
updated to use this function.
Merge pull request #4168 from mfojtik/bugzilla/1014793

Merged by openshift-bot