Fix some deployment permission issues.