Cobspec function deletes nohup and returns to right directory