Fixed name resolving in global env
Removed taking realpath of global dirs