Fix issue in detecting src/ sub-directory