Fixed bug in srcdir path resolution