fixed check on slash == NULL from strchar