Fix bug with srcdir not being set correctly.