Removing unnecessary target directory