remove double check for '.' in _getPath