Current sheet formation in quasi-separatrix layers and hyperbolic flux tubes