Directed flow is a sensitive probe of deconfinement transition