FIXFOR: Add DIR_IS_DOT and DIR_IS_DOTDOT macros

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>