Fixed repos directory check.