Fixed Check_If_Running functon by adding -c option to ps command in original fork version