Added check for .. in path for getting resource in jar