split out http-server kill,rm logic into separate scripts