Fixed a bug where even folders with . (dot) in their names were considered as files and moved to a parent folder with the name after the . (dot)