set internal srcdir variable if it is None