get_scriptdir function

Directory of current script