Add first functional test; Fix issue where ResourceDirectory worked only for sub-directories of git repositories