Attempting to resolve issue-1387 by first declaring local pid_file= to null in check_status()

Found that if _get_pid_files returns more than one file the local pid_files=`_get_pid_files` line 161 results in a bad variable name on ubuntu 12.04.