SerialPlugin get output dir from source file