Added rx_is_dir() for win