fix when srcdir is given as relative path