fixing drone.io build by improving the kill process bash script