Fix error when source folder contains no packages.