fix bug in detecting forked repos