Fix Exceptions #86

- NPE for config directory
- IOException for git command