Fixes #241, creates .gitignore in application/{logs,cache}