Edded elimchar function that will eliminate prefixes for relative path