dotlock paths detected in zlib locking
osx build fixes
fix gpg hooks to work with dirs that contain spaces