fixes resolution of CDE resources when using relative paths
code reformat