adding check isDeletable() on $sourcePath

fixes #5172 

@rperezb @purigarcia @blizzz @schiesbn @karlitschek @bantu THX