Fix bug: list the correct directory when finding the first build number