There is no need to use "%EXE_DIR%" to define images folder which is in the root folder of the project (from where you call "main" script). It needs to be simple like this:
Code:
#define PRAGMA_PATH "images"
This works great for me, I have no idea why it doesn't work for you... you probably doing something wrong with folders