derive data dir from script path
derive data dir from script path

Instead of hardcoding the data dir path we derive it
from the script path.

Also check if the __file__ is a symlink. Can't use
realpath due to python bug 9949 so we have to check
first if the file is a smylink, and then follow it.

mubaris/motivate,mubaris/motivate