fix permissions before bootstrapping