Separating build directories for packages for fixing directory access problems