Fix permissions error with app directory.

Cleans up warning during cap deploy, and fixes security issue.