when retrieving build number from previously built packages, first check if the directory exists at all.
fixes a problem with new projects.
fixes #56