tests(cmake): Fix handling of LFS support