option added to remove intermediate dir/files