Fix copyResource to prepend runDir on relative paths again