fixed slashes and removal of entire directory