Automatically detect src dir from build dir