better cross-platform file handling
working directory extracted from script path
no more hardcoded icons directory
no more hardcoded icons directory