Improve OSFileIsDirectory behavior
Fix GetOutputFilename not expanding output filename properly