Added directory deletion to script