Add support for recursive open repository, fixex #12