Fixed distdef prefix handling and processing of non-source files