Ok its official, I'm a complete dumb ***!, It wasn't working due to my own stupidness.
The problems I was having have now been solved, excluding the grepping issue.
Once I get the grepping issue solved I'll updated FrankenScript with the MDK3 AP Reset attack, so if all goes well I'm hoping to upload it late tonight (Fingers crossed LOL).