Fix relative paths for some platforms

Sometimes the platform runs on a different path than the .py file
location. With this fix, the paths will always be relative to the file
being executed.
ohohoooooo