Git ftp include matching backport

Covers issues with .git-ftp-include with unit tests and solves #41 and #42.

Thanks to JasonWoof. This request replaces #42 and #43.