glob doesn't list . and ..; added 'exists' function