correct cwd for glob