Automatically parse the script path and create the absolute path of word.data

Automatically parse the script path and create the absolute path of word.data. 
No more need to pass the path manually.
Now the module works in import mode and main mode