do not use a hardcoded directory separator. closes #1573