Fixing permission problme in build