I think that you need to cd to the folder in the control section first and then the d_source file can be relative not absolute. It will have to be a lower case file name though.
Here’s how I did it with d_process Mixed mode simulation including C code and verilog