Fix undefined source and build directories