a ktest bug

This fixes a bug.

 KTest tries to compile the file if `--skip kompile` is provided, but definition is not kompiled. (e.g. `-kompiled` directory doesn't exist)

Previously it was ignoring `-d` argument specified in `<test ... />` in config files and was looking to the directory that definition file resides. With this patch it's now reading `-d` and checking correct place to see if definition is not compiled yet.