Fix a bug in invoking dir_exists function