Fixed path differences when using include/exclude headers

Added function for removing relative operators from input paths.