Tweaked build to set permissions on sites folder