Switch working dir before loading composer, fixes #3146