accommodate absolute paths in formatForOS()