Fixed pre_build path and perms

Fixed pre_build path and perms