Fix paths in composer script + fix deadlock