Fixed copying packages on empty directory