After his first run of hits dried up, Hollywood left the director for dead. But that was just the beginning of his story