fix finding packages in new dirs structure