fix call to directory-file-name(nil) when cmake-project-build-directory is nil