Permission and tex build changes