Fixed rewriting relative paths to headers