Only check permissions if .git dir exists
Updated version
Merge branch 'dev'

Conflicts:
	README.md
	readme.txt
	revisr.php
Escape URL before storing in config.
Fix for changes from WP 4.1