Fix authfile condition