more changes to get the build script working with docker and permissions