Cleanup compiler code for checking and decomposing source file paths