fix autodetection of fork