remove slash from pathes