xmlCheck using the right directory for .test

This fixes #617 

Note that some XML checking errors will remain after merging this in develop (eg. the ones related with scopeValue), that will be fixed in others PRs.
Looks good.
You get the directory part of the path in $FILE to the variable FILE_DIR.
In fact, even if there is no directory part of $FILE, dirname gives back a dot, i.e. current directory.

NTC