bug fix for non in-source builds