set modes of directories only for git mode

1. mode for /var/cache/swift needs to be 700 (https://bugzilla.novell.com/show_bug.cgi?id=858194)

2. modes are set by openstack-swift package now, hence no need to set them here if installed from packages