Implemented EZP-19411: Avoid file_exists and include calls for register...

...ing datatypes and workflows

See https://github.com/ezsystems/ezpublish-legacy/commit/a6bfaa622342b728951c7f45bb066828440c3be3