Fixed scanpackages
Fixed build process