Thanks Captain Obvious.

For anyone else that reads this post I had $scriptdir and not $mircdir which altered the full path that it was supposed to be looking for.