consistent loader

This is an attempt for a better loader; this way should not be necessary to hardcode the script location in the loader; i also make use of DIRECTORY_SEPARATOR.