Updated to no longer use a temp file

	modified:   check-running.sh