LEAD-169 fix construction of direcotry. fix construction of constructor. canonical path is actually the path within the key name.