update garden autodetect script